<template>
	<view>
		<view class="header-container">
			<view class="hc-left">
					<img :src="userNameInfo.schoolLogo" alt="" style="width: 100%; height: 100%;	border-radius: 10rpx;">
			</view>
			<view class="hc-right">
				<view class="cr-name">
					{{userNameInfo.name}}
				</view>
				<view class="cr-tab">
					<view class="tab-style" style="width: 80rpx;" @click="goBackHome">
						<u-icon name="home" size="42"></u-icon>
						<view class="tab-name">主页</view>
					</view>
					<view class="tab-style" @click="goCourseList">
						<u-icon name="calendar" size="42"></u-icon>
						<view class="tab-name">教学课程</view>
					</view>
					<view class="tab-style" @click="appointListen">
						<u-icon name="kefu-ermai" size="42"></u-icon>
						<view class="tab-name">预约试听</view>
					</view>
					<view class="tab-style" @click="telShowBtn">
						<u-icon name="phone" size="42"></u-icon>
						<view class="tab-name">电话咨询</view>
					</view>
				</view>
			</view>
		</view>
		<telPage></telPage>	
	</view>
</template>

<script>
	import telPage from '@/components/telPage.vue';
	export default {
		components: {
		
			telPage
		},
		data() {
			return {
				userNameInfo:uni.getStorageSync('userNameInfo')
			}
		},
		methods: {
			goBackHome(){
				uni.redirectTo({
					url:'/pages/index/index'
				})
			},
			goCourseList(){
				uni.navigateTo({
					url: '/pages/course/courseList'
				})
			},
			telShowBtn(){
				uni.$emit("telShow",true)
				// console.log("1",telShow);
			},
			appointListen(){
				uni.navigateTo({
					url: '/pages/course/courseList'
				})
			},
		}
	}
</script>

<style>
   .header-container{
	   width: 100%;
	   height: 200rpx;
	   background-color: #ffffff;
	   display: flex;
   }
   .hc-left{
	   width: 140rpx;
	   height: 140rpx;
	   margin-top: 20rpx;
	   margin-left: 30rpx;
   }
   .hc-right{
	   margin-left: 20rpx;
	   margin-top: 30rpx;
   }
   .cr-name{
	   font-weight: bold;
	   letter-spacing: 2rpx;
   }
   .cr-tab{
	   display: flex;
	   justify-content: space-between;
	   align-items: center;
	   margin-top: 20rpx;
   }
   .tab-style{
	   width: 160rpx;
	   text-align: center;
	   font-size: 24rpx;
   }
</style>
